We add our own GDT so that we can select the correct code and data segments for the next video about interrupts - allowing us to do things like catch and handle faults, and use PS/2 Keyboard and Mouse, and PIT timers. ➤Discord: https://discordapp.com/invite/p2JYhr9 ➤Github: https://github.com/Absurdponcho/PonchoOS/tree/Episode-10-GDT ➤Patreon: https://www.patreon.com/PonchoYT ➤UEFI Specification: https://www.uefi.org/specifications ➤Helpful Links: https://wiki.osdev.org/Global_Descriptor_Table https://wiki.osdev.org/UEFI https://wiki.osdev.org/ACPI https://blog.llandsmeer.com/tech/2019/07/21/uefi-x64-userland.html 0:00 Intro 0:27 Creating the GDT structs 5:06 Creating the GDT 7:07 Adding an assembler to the toolchain 11:06 Writing our LoadGDT Function 16:35 Success